<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{$is_language?'查看記錄':'View record'}</title>
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <link rel="stylesheet" href="__MODULE_LIBS__/css/weui.min.css">
    <link rel="stylesheet" href="__MODULE_LIBS__/css/jquery-weui.css">
    <link rel="stylesheet" href="__MODULE_LIBS__/css/demos.css">
    <script src="__MODULE_LIBS__/js/jquery-2.1.4.js"></script>
    <script src="__MODULE_LIBS__/js/fastclick.js"></script>
    <script src="__MODULE_LIBS__/js/jquery-weui.js"></script>
    <style type="text/css">

        * {
            margin: 0;
            padding: 0;
        }

        html {
            width: 100%;
            height: 100%;
            font-size: 20px;
            font-family: "Microsoft YaHei", "宋体", "Segoe UI", "Lucida Grande", Helvetica, Arial, sans-serif, FreeSans, Arimo;
            background: #F3F3F3;
        }

        body {
            margin: 0 auto;
            max-width: 750px;
            height: 100%;
            background: #F7F7F7;
        }

        li {
            list-style: none;
        }

        a {
            text-decoration: none;
        }

        .navbar {
            position: relative;
            width: 100%;
            height: 2rem;
            font-size: 16px;
            color: #fff;
            line-height: 2rem;
            background: #373553;
        }

        .navbar-item {
            position: absolute;
            left: 0;
            top: 0;
            display: block;
            width: 3.2rem;
            height: 2rem;
            font-size: 14px;
            color: #fff;
            text-align: center;
        }

        .navbar-item > img {
            width: 0.8rem;
            height: 0.7rem;
            vertical-align: middle;
        }

        .navbar-center {
            text-align: center;
        }

        .person > img, .message > img {
            width: 1.2rem;
            /*height: 1.2rem;*/
        }

        .headlist > li {
            position: relative;
            float: left;
            width: 25%;
            padding: 0.49rem 0;
            text-align: center;
            line-height: 1.6;
            background: #fff;
        }

        .headlist > li:first-child {
            border-radius: 0.25rem 0 0 0;
        }

        .headlist > li:last-child {
            border-radius: 0 0.25rem 0 0;
        }

        .headlist > li > a {
            color: #f44040;
        }

        .weui-grid__icon img {
            width: 1rem;
            height: 1rem;
        }

        .weui-cells {
            margin-top:0;
            font-size: 0.8rem;
        }

        .weui-cells:after, .weui-cells:before {
            /*border: 0;*/
        }

        .weui-cell:before {
            margin-left: 0rem;
        }
    </style>
</head>
<body>
<header class="navbar">
    <a href="{:url('myteam/index')}" class="navbar-item">
        <img src="__MODULE_LIBS__/img/back.png"/>&nbsp;{$is_language?'返回':'Return'}
    </a>
    <div class="navbar-center">{$is_language?'查看記錄':'View record'}</div>
    <div class="navbar-item1">
        <select name="" id="yy">
            <option value="1" {$is_language?'selected':''}>中文</option>
            <option value="0" {$is_language?'':'selected'}>English</option>
        </select>
    </div>
</header>
<!-- 纵向列表菜单start -->
<div class="weui-cells">
    <a class="weui-cell weui-cell_access" href="{:url('orders',['username'=>$user->username])}">
        <div class="weui-cell__bd">
            <p>{$is_language?'資產買賣記錄':'Record of assets purchase and sale'}</p>
        </div>
        <div class="weui-cell__ft"></div>
    </a>
    <a class="weui-cell weui-cell_access" href="{:url('mix/rechargelist',['username'=>$user->username])}">
        <div class="weui-cell__bd">
            <p>{$is_language?'充值記錄':'Entry record'}</p>
        </div>
        <div class="weui-cell__ft"></div>
    </a>
    <a class="weui-cell weui-cell_access" href="{:url('mixout/witndrawlist',['username'=>$user->username])}">
        <div class="weui-cell__bd">
            <p>{$is_language?'提現記錄':'Out of record'}</p>
        </div>
        <div class="weui-cell__ft"></div>
    </a>
    <a class="weui-cell weui-cell_access" href="{:url('trans/record',['username'=>$user->username])}">
        <div class="weui-cell__bd">
            <p>{$is_language?'積分定向收入\轉出記錄':'Balance directional income \ turn out record'}</p>
        </div>
        <div class="weui-cell__ft"></div>
    </a>
    <a class="weui-cell weui-cell_access" href="{:url('order/record',['username'=>$user->username])}">
        <div class="weui-cell__bd">
            <p>{$is_language?'資產交易記錄':'Assets transaction record'}</p>
        </div>
        <div class="weui-cell__ft"></div>
    </a>
</div>
<!-- /纵向列表菜单end -->


<script type="text/javascript">
    $(document).on("change",'select#yy',function(){
        var yy = $(this).val();
        console.log(yy)
        var url = "{:url('index/language')}";
        $.post(url,{language:yy},function (res) {
            window.location.reload();
        })
    });
    $(function () {
        FastClick.attach(document.body);
    })
</script>
</body>
</html>